﻿<Window x:Class="ToDoList.ToDoWin" Name="ToDoWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ToDo List" Height="200" Width="300" ShowInTaskbar="False" 
        AllowsTransparency="True" WindowStyle="None"
        BorderBrush="Transparent" SizeToContent="Height" BorderThickness="1">
    <Window.Background>
        <ImageBrush ImageSource="/ToDoList;component/background.jpg"/>
    </Window.Background>
    <!-- <Textbox disabled background style> -->
        <Window.Resources>
        <SolidColorBrush x:Key="DisabledBackgroundBrush" Color="Transparent" />
        <Style x:Key="myTextBox" TargetType="{x:Type TextBoxBase}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Border Name="Border" BorderThickness="0">
                            <ScrollViewer Margin="0" x:Name="PART_ContentHost"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsEnabled" Value="False">
                                <Setter TargetName="Border" Property="Background" Value="{StaticResource DisabledBackgroundBrush}"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <!-- </Textbox disabled background style> -->
    <TextBox Name="txtToDo" Style="{StaticResource myTextBox}"
             BorderThickness="0" Background="Transparent" 
             VerticalScrollBarVisibility="Auto" AcceptsReturn="True"
             Height="160" Padding="45,10,0,0" TextWrapping="Wrap">
        <TextBox.BitmapEffect>
            <OuterGlowBitmapEffect GlowColor="LightSteelBlue" />
        </TextBox.BitmapEffect>
    </TextBox>
</Window>
